(function() {
    angular.module('KtotApp').controller('SideMenuController', ['TaskService', function(taskService) {
        var self = this;
        
        self.projects = [];
        
        self.init = function() {
          taskService.getProjects().then(function(projects) {
             self.projects = projects; 
          });
        };
        
    }]);
})();